home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / cenviw1.zip / ASCII.CMM next >
Text File  |  1993-06-15  |  505b  |  19 lines

  1. /***************************************************
  2.  *** Ascii.cmm - Display the ASCII character set ***
  3.  ***************************************************/
  4.  
  5. #define  ROW_COUNT      20
  6. #define  COL_COUNT      13
  7.  
  8. Unprintables = "\a\b\t\r\n\032\033"
  9. for ( row = 0; row < ROW_COUNT; row++ ) {
  10.    for ( col = 0; col < COL_COUNT; col++ ) {
  11.       c = ROW_COUNT*col + row
  12.       if c < 256
  13.          printf("%c-%-3d ",(NULL==strchr(Unprintables,c))?c:'.',c)
  14.    }
  15.    printf("\n")
  16. }
  17.  
  18. getch();
  19.